package com.example.demo3;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by 宇成童鞋 on 2017/1/2.
 */

public class Weather {

    private String city;
    private String temp;
    private String littleWeather;
    private List<WeatherReport> weatherReports = new ArrayList<>();
    private String suggestion;

    protected class WeatherReport {

        private String date;
        private String desc;
        private String maxTemp;
        private String minTemp;

        public WeatherReport(String da, String de, String max, String min) {
            date = da;
            desc = de;
            maxTemp = max;
            minTemp = min;
        }

        public String getDate() {
            return date;
        }

        public String getDesc() {
            return desc;
        }


        public String getMaxTemp() {
            return maxTemp;
        }

        public String getMinTemp() {
            return minTemp;
        }
    }

    public void addReports(String da, String de, String max, String min) {
        WeatherReport weatherReport = new WeatherReport(da, de, max, min);
        weatherReports.add(weatherReport);
    }

    public void removeAllReports() {
        weatherReports = new ArrayList<>();
    }

    public List<WeatherReport> getReports() {
        return weatherReports;
    }

    public String getLittleWeather() {
        return littleWeather;
    }

    public void setLittleWeather(String littleWeather) {
        this.littleWeather = littleWeather;
    }

    public String getCity() {
        return city;
    }

    public String getTemp() {
        return temp;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public void setTemp(String temp) {
        this.temp = temp;
    }

    public String getSuggestion() {
        return suggestion;
    }

    public void setSuggestion(String suggestion) {
        this.suggestion = suggestion;
    }
}
